import {
  request,
} from "@rabbit.do/rabbit";

// 请求班次设置的数据
export const fetchSchedulData = (data) => request({
  url: '/swan/operation/work/period/find/page',
  data,
});

// 新增班次设置的数据
export const addSchedulData = (data) => request({
  url: '/swan/operation/work/period/create',
  data,
});

// 修改班次设置的数据
export const updateSchedulData = (data) => request({
  url: '/swan/operation/work/period/update',
  data,
});

// 删除班次设置的数据
export const deleteSchedulData = (data) => request({
  url: '/swan/operation/work/period/delete',
  data,
});

// 请求人员排班的数据
export const fetchPersonnelData = (data) => request({
  url: '/swan/operation/fixed/work/member/find/page',
  data,
});

// 新增人员排班的数据
export const addPersonnelData = (data) => request({
  url: '/swan/operation/fixed/work/member/create',
  data,
});

// 删除人员排班的数据
export const deletePersonnelData = (data) => request({
  url: '/swan/operation/fixed/work/member/delete/batch',
  data,
});

// 修改人员排班的数据
export const updatePersonnelData = (data) => request({
  url: '/swan/operation/fixed/work/member/update',
  data,
});
